﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Gmis.Public;
namespace Gmis.Web.Manage.Village
{
    public partial class ColumnEdit : System.Web.UI.Page
    {
        //public string VillageId = string.Empty;
        public string ColumnId = string.Empty;
        public Gmis.Model.Column ColumnInfo = new Model.Column();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitData();
            }

        }

        private void InitData()
        {
            //throw new NotImplementedException();
            ColumnId = Request.QueryString["ColumnId"] == null ? "" : Request.QueryString["ColumnId"].ToString();
            if (ColumnId == "")
            {
               Response.Write("没有获取到栏目信息!");
               return;
            }
            Gmis.BLL.Column bllColumn = new BLL.Column();
            ColumnInfo = bllColumn.GetModel(ColumnId);
            if (ColumnInfo == null)
            {
                return;
            }
            //ColumnInfo = columnInfo;
            sComment.InnerText = ColumnInfo.sComment;
            
        }
    }
}